// src/router/index.js
import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'
import Index from '@/views/Home.vue'
import About from '@/components/About.vue'

const routes = [
  {
    path: '/',
    name: 'Index',
    component: Index
  },
  {
    path: '/about',
    name: 'About',
    component: About
  }
]

const router = createRouter({
  // history: createWebHistory(),
  history: createWebHashHistory(),
  routes
})

export default router
